home *** CD-ROM | disk | FTP | other *** search
- DVEXEC
- Copyright (C) 1989 George A. Stanislav
- All rights reserved
-
- This program is an extension and generalization of my DVRUN. Both programs
- achieve the same goal but in slightly different manner.
-
- DVRUN is a .BIN file which needs to be combined with a DESQview PIF file,
- thus creating a seaparate .COM program for each and every program it loads.
- Its advantage is that a copy of the PIF file is no longer necessary to be
- kept on the system (unless you still want to be able to run the program
- manually from DESQview menu). Furthermore, DVRUN does not need to open and
- read the file, thus being faster and saving a file handle.
-
- DVRUN is available separatly from various BBS.
-
- On the other hand, DVEXEC offers more flexibility in that a single program
- can open a DESQview window for any program currently installed to run under
- DESQview. As a matter of fact it will even run programs not yet installed,
- as long as there is a PIF available somewhere on the system.
-
- DVEXEC allows you load and run programs in another window from a batch file.
- This is of great advantage especially to sysops of electronic bulletin board
- systems who often need to run a program at a certain specific time unattended.
- Under usual circumstances they use a batch file which runs the program while
- their BBS is waiting idle.
-
- With DVEXEC you can run such programs in another DESQview window and return
- to BBS program while doing that. Of course, DVEXEC is not limited to operators
- of BBS.
-
- How does it work? Simply type DVEXEC followed by the name of the PIF control-
- ling the program you want to run. Typically, your PIF will be in the C:\DV
- directory. Its name will usually be two characters, followed by a dash, 'PIF',
- dot and the 'DVP' extension.
-
- For example, the DOS Services program will most likely be defined in
- C:\DV\DS-PIF.DVP. To run it from a batch file, place the following line in
- the batch file:
-
- DVEXEC C:\DV\DS-PIF.DVP
-
- Please note that the command is case insensitive. You can use any combination
- of lower and upper case.
-
- When DVEXEC runs, it first shrinks its own memory to mere two kilobytes so as
- not to take up too much of the system resourses.
-
- Then it will check if DESQview is loaded. If not, it will post a message on
- your screen and exit with errorlevel 1.
-
- If it finds DESQview, it will open the PIF, read it and tell DESQview to open
- a window defined in the PIF.
-
- There are several possible problems DVEXEC can encounter, besides DESQview
- not being loaded as mentioned above. The PIF may not be on the system or it
- may be impossible to open or read the PIF. Last but not least, DESQview may
- not be able to open another window, typically because non-swappable windows
- are in the way.
-
- In all the above cases, DVEXEC will post a message on the screen and will exit
- with an errorlevel. The messages can be redirected to a file for later
- examination, for example like this:
-
- DVEXEC C:\DV\D1-PIF.DVP >> C:\DV\DVEXEC.LOG
-
- Note that you need a double >>, or else each time you run the program the
- log will be overwritten.
-
- If DVEXEC and DESQview are successful, DVEXEC will inform you and will print
- the task handle on the screen. This message, of course, can be redirected as
- all others. DVEXEC will then exit with errorlevel 0.
-
- Here is a list of errorlevels which can be acted upon by your batch file:
-
- - Success: 0
- - DESQview not loaded: 1
- - No PIF specified: 1
- - PIF not found: 1
- - Can't open PIF: 1
- - Can't read PIF: 1
- - DESQview cannot run PIF: 2
-
- Simplified: Success = 0, non-DESQview related problem = 1, DESQview
- related problem = 2.
-
- Please note that batch files look for errorlevel equal to OR greater than
- requested. Thus your batch file should check for errorlevel 2 first, 1 second,
- then default to 0 (success).
-
- One final note: Once DVEXEC loads a program, it has no more control over it.
- It will not be able to close the window it has opened. For that reason, you
- should either use it with programs you have configured to close their window
- when done, or programs running from a batch file ending with the EXIT line,
- or finally programs you do not want to close.
-
- LICENSE: This program may be freely distributed as long as there is no charge
- connected with the ditribution. Companies that sell public domain and
- shareware programs are expressly prohibited from distributing this program.
- This program is NOT in public domain, the author retains all the rights to
- this program, including the right to have the program taken out of public
- distribution.
-
-
-